﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>电影系统</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">


    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>


    <style type="text/css">
       *{
        font-size: 12px;
       }
    </style>

  </head>
  
  <body>
   <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 操作信息管理</strong></div>
    <div class="padding border-bottom">
      <!--<ul class="search">
        <li>
          <button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>
        </li>
      </ul>-->
    </div>
    <table class="table table-hover text-center" id="sale-table">
      <tr>
        
        <th>编号</th>       
        <th>电影名称</th>
        <th>大厅信息</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>票价</th>
        <th>座位</th>
    </table>
  </div>

</body>
<script>
    $(function(){
        $.get("../gson/saleGson",function(data){
            var gsonText  = '';
            $(data).each(function(i,n){
               gsonText += '<tr>' +
                   '<td>'+n.mid+'</td>' +
                   '<td>'+n.modelBroad.modelFiml.fname+'</td>' +
                   '<td>'+n.modelBroad.modelHall.tname+'</td>' +
                   '<td>'+n.modelBroad.begintime+'</td>' +
                   '<td>'+n.modelBroad.endtime+'</td>' +
                   '<td>'+n.modelBroad.xmoney+'</td>' +
                   '<td>'+n.mzw+'号座</td>' +
                   '</tr>';
            });
            gsonText += '<tr>\n' +
                '       \t\t<td colspan="8" align="center">\n' +
                '\t\t\t\t<a href="saleControllerBroadTime"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 开始售票</button></a>\n' +
                '\t\t\t</td>\n' +
                '       </tr>';
            $('#sale-table tbody').append(gsonText);
        });
    });
</script>
</html>

